#include<iostream>
using namespace std;
class Person
{
public:
	int m_A;
	int m_B;
	Person operator+(Person& p)
	{
		Person tem;
		tem.m_A = this->m_A + p.m_A;
		tem.m_B = this->m_B + p.m_B;
		return tem;
	}
	Person() :m_A(10), m_B(10) {};
	~Person() {};
	Person(Person& p) :m_A(p.m_A), m_B(p.m_B) {};
};
int main()
{
	Person p1;
	Person p2;
	Person p3(p2);
	p1 = p2 + p3;
	cout << p1.m_A << " " << p1.m_B << endl;

	return 0;
}